<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>

<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path;
	
%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
	<title>测试防盗链</title>
	<base href="<%=basePath%>/" />
	
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<meta name="viewport" content="width=device-width, initial-scale=1.0" />
	<meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1" />
	<meta name="author" content="blackshadowwalker" />
	
	
	<script type="text/javascript" src="scripts/jquery/jquery-1.7.min.js" ></script>	



</head>
<body>

	<h1>破解防盗链:09:36</h1>
	
	<div>
		<p>
			url : 
		</p>
		<div>
			测试图片：http://ipark.b0.upaiyun.com/sample.jpeg!sm
			<br />
			<img src="http://ipark.b0.upaiyun.com/sample.jpeg!sm" style="width:200px;height:200px;"/>
			<br />
			<button onclick="test()">test()</button>
		</div>
	</div>
	
	<div id="booter">
	
	</div>
	
	<script >
	
		function test(){
			var url = "http://192.168.0.100:9010/ipark/LoginAction";
			var Referer = "http://app.teleframe.cn";
			$.ajax({
				url : url,
				data : {},
				type : "GET",
				beforeSend : function(xhr) {
					xhr.setRequestHeader("Referer", Referer);
				},//这里设置header
				success : function(data, textStatus) {
					$("#booter").html(textStatus+"<br/>"+data);
				}
			});
			
		}
	
		$(document).ready(function() {
		
			
		});
	</script>
	
</body>
</html>
